package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {

    PageResult findPage(Integer currentPage,Integer pageSize,String queryString);

    void deleteById(Integer id);

    List<Role> findAll();

    void add(Integer[] menus,Role role,Integer[] permissions);

    Role findById(Integer id);

    void edit(Integer[] menus,Role role,Integer[] permissions);

    List<Integer> findCheckItemIdsByCheckGroupId(Integer id);
}
